package Application.Widgets.TextList;

import Application.Utils.StaticUtil;

import javax.swing.*;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

public class TextListString extends JComboBox {
    private String BaseValue;
    private String WidgetName;

    public TextListString(String[] list){
        super(list);
        this.setEditable(true);
    }
    public TextListString(String title,String[] list,String baseValue,String name,JComponent component){
        this(list);
        this.BaseValue = baseValue;
        this.WidgetName = name;
        this.setFont(StaticUtil.config.fontGetter());
        JPanel panel = new JPanel();
        panel.setBorder(new TitledBorder(new EtchedBorder(),title));
        panel.add(this);
        component.add(panel);
    }
}
